Fix failures in try_scrolling when scrolling back.
authorEli Zaretskii <eliz@gnu.org>
Mon, 28 Mar 2011 19:30:35 +0000 (21:30 +0200)
committerEli Zaretskii <eliz@gnu.org>
Mon, 28 Mar 2011 19:30:35 +0000 (21:30 +0200)
commita8abec70bcb27196fa53302b2f4b1044372c3b38
treefa52e598afe6d229ae86e5cdc33cddbfa943ff5b
parent8858bf563cad8291014ec8e0bd08f7d09e398d0b
Fix failures in try_scrolling when scrolling back.

 src/xdisp.c (try_scrolling): When point is above the window, allow
 searching as far as scroll_max, or one screenful, to compute
 vertical distance from PT to the scroll margin position.  This
 prevents try_scrolling from unnecessarily failing when
 scroll-conservatively is set to a value slightly larger than the
 window height.
src/ChangeLog
src/xdisp.c